-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate wind_offshore curtailment #115
Conversation
b2c967c
to
04e15ba
Compare
@@ -72,7 +76,8 @@ def _check_curtailment_in_grid(curtailment, grid): | |||
raise ValueError(err_msg) | |||
|
|||
|
|||
def calculate_curtailment_time_series(scenario, resources=('solar', 'wind')): | |||
def calculate_curtailment_time_series( | |||
scenario, resources=('solar', 'wind', 'wind_offshore')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PEP8 issue: the above line should be further indented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified to avoid this issue.
l. 108 in curtailment.py: should it be scenario-long instead of year-long in the docstring or something in that vein? l. 55 and l. 174 in test_curtailment.py: ther should be 2 blank lines (PEP8) |
In the following test:
don't we want the three |
Sorry. Just realize now that I am not the reviewer. Stop here. |
Comments addressed anyway 👍 |
You are welcome and feel free to keep going :) |
d17fea5
to
c0c5485
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests passed. Minimum changes to the existing code to support offshore wind curtailment calculations are made. This will be useful when we refactor the curtailment plot the AnalyzePG.
c0c5485
to
f34573f
Compare
Purpose
Enable calculation of curtailment time series for
'wind_offshore'
plants.What is the code doing
In
curtailment.py
:'wind_offshore'
profiles are obtained by callingget_wind()
.calculate_curtailment_time_series()
so that is callsget_wind()
and/orget_solar()
as necessary, and filters columns based on type ingrid.plant
so that if we are looking for justwind
, or justwind_offshore
, we don't get the other plants' profiles.In
test_curtailment.py
: we modify tests so that they adequately test combinations ofwind
,solar
, andwind_offshore
.Time to review
15 minutes. Besides columns selection in
calculate_curtailment_time_series()
, there's not much else going on.